<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="翻译平台、翻译网站、找翻译、找人翻译、法语翻译、英语翻译、日语翻译、德语翻译、意大利语翻译、俄罗斯语、翻译人员、成都翻译、成都翻译员" />
<meta name="description" content="众译，助推翻译事业，选择最佳翻译人员，最迅速、最便捷的网络翻译平台。" />
<title>众译-可信赖的翻译平台-发布项目</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/reset.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/css.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/jquery.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/ui-lightness/jquery-ui-1.8.7.custom.css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/config.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-ui-1.8.7.custom.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/chooselanguage.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/industry.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/pro/release.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/AjaxAction.js"></script>
<script type="text/javascript">
	$(function (){
		initLanguage('lang_from');
		initLanguage('lang_to');
		initWorkDays();
		initType("goodAtType", '50001', true);
		$("#goto1").bind('click', gotoHandler);
		$("#goto2").bind('click', gotoHandler);
		$("#goto3").bind('click', gotoHandler);
		$("#choosearea").bind('click', openIndustryWindow);
	});
	
	function initWorkDays() {
		var obj = $("#workdays");
		var txt = new Array();
		for (var i = 1; i <= 15 ; i ++) {
			txt.push("<option value='" + i + "'>" + i + "天</option>");
		}
		obj.empty();
		obj.html(txt.join(''));
	}
	
	var industryWindow = null;
	
	function openIndustryWindow() {
		try {
			if (industryWindow == null) {
				industryWindow = new IndustryWindow(false);
			}
		} catch (e) {
			return;
		}
		industryWindow.show(relateArea);
	}
	
	function relateArea(obj, args) {
		if (args.length <= 0) {
			$("#choosearea").val("请选择项目涉及的领域");
			$("#area_direction").val('');
			return;
		}
		var txt = new Array();
		var hids = new Array();
		for (var i = 0 ; i < args.length ; i ++) {
			txt.push(args[i].txt);
			hids.push(args[i].id);
		}
		$("#choosearea").val(txt.join(","));
		$("#area_direction").val(hids.join(","));
	}
	
	function gotoHandler() {
		var step = $(this).attr('id');
		
		switch (step) {
		case 'goto1':
			$("#step01").show();
			$("#step02").hide();
			$("#step03").hide();
			break;
		case 'goto2':
			if (step01Check()) {
				$("#step01").hide();
				$("#step02").show();
				$("#step03").hide();
			}
			break;
		case 'goto3':
			$("#project_form").submit();
			break;
		default:
			break;
		}
	}
</script>
</head>
<body>
<div class="layout">
<jsp:include page="/include/head/top.jsp"/>
<jsp:include page="/include/head/top_nav.jsp"/>
<div class="content">
<form action="<%=request.getContextPath()%>/passport/new_project_execute" method="post" enctype="multipart/form-data" id="project_form">
<h1>发布新项目</h1>
<div class="col_left">
<div id="step01">
<div class="step01"></div>
<table>
	<tr>
		<td class="w20"></td>
		<td>
			<s:fielderror/>
		</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">项目标题：</td>
		<td><input type="text" class="intxt" name="project.title" id="title" value="<s:property value='project.title'/>"/></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="2"><span>输入一个简单明了的项目标题，让译者更容易的找到您。</span></td>
	</tr>
	<tr>
		<td class="w20">翻译要求：</td>
		<td>
		<select id="lang_from" name="project.langFrom">
		</select> 
		到 
		<select id="lang_to" name="project.langTo">
		</select>
		</td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="2"><span>选择您要求翻译的语言</span></td>
	</tr>
	<tr>
		<td class="w20">翻译类型：</td>
		<td id="goodAtType">
		</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">领域：</td>
		<td>
		<input type="button" value="请选择项目涉及领域" style="width:150px;" id="choosearea"/>
		<input type="hidden" value="" id="area_direction" name="project.area" value="<s:property value='project.area'/>"/>
		</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20"></td>
		<td><span>请选择项目涉及领域</span></td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">预算：</td>
		<td colspan="2"><input type="text" class="intxt" id="cost" name="project.money" value="<s:property value='project.money'/>"/></td>
	</tr>
	<tr>
		<td class="w20"></td>
		<td colspan="2"><span>输入RMB数字</span></td>
	</tr>
	<tr>
	    <td class="w20">翻译周期：</td>
	    <td colspan="2">
	    	<select id="workdays" name="project.workDays">
	    		<option>2天</option>
	    	</select>
	    </td>
    </tr>
    <tr>
	    <td class="w20"></td>
	    <td colspan="2"><span>竞标成功到工作结束的天数</span></td>
    </tr>	
	<tr>
		<td class="w20">竞标有效期：</td>
		<td colspan="2">
			<select name="period" id="period">
				<option value="3">3天</option>
				<option value="4">4天</option>
				<option value="5">5天</option>
				<option value="6">6天</option>
				<option value="7" selected="selected">7天</option>
			</select>
		</td>
	</tr>
	<tr>
		<td class="w20"></td>
		<td colspan="2"><span>发布日到竞标结束的天数</span></td>
	</tr>
	<tr>
		<td class="w20">是否要求发票：</td>
		<td colspan="2"><input type="radio" value="1" name="invoice" checked="checked"/><span>是</span>&nbsp;&nbsp;<input type="radio" value="0" name="invoice"/><span>否</span></td>
	</tr>
	<tr>
		<td class="w20" valign="top">项目需求描述：</td>
		<td colspan="2">
		<textarea id="desc" name="project.desc">
项目需求参考模板
项目描述：
 一篇冶金方面的项目翻译文档，需求20天内完成。
 交付要求：
 要求希望是有此类项目经验的翻译人员承接此项目，确保翻译质量。
    	</textarea></td>
	</tr>
	<tr>
		<td class="w20">项目文档：</td>
		<td><input type="file" class="intro" id="select_file" name="projectdoc" accept="image/jpeg,application/msword"/></td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td class="w20"></td>
		<td colspan="2"><span>目前只能上传WORD文档</span></td>
	</tr>
	<tr>
		<td class="w20">&nbsp;</td>
		<td><input type="button" class="goonbtn" value="" id="goto2"/></td>
		<td>&nbsp;</td>
	</tr>
</table>
</div>
<div id="step02" style="display: none;">
<div class="step02"></div>
<table>
	<tr>
		<td class="w20">项目标题：</td>
		<td id="title_txt">冶金项目合同书中文翻译英文</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">翻译要求：</td>
		<td id="trans_dire">中文-&gt;英文</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">翻译类型：</td>
		<td id="trans_type">jj88</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">项目领域：</td>
		<td id="area_txt">电子</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">竞标预算：</td>
		<td id="cost_txt"><b>￥：2000RMB</b></td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">要求发票：</td>
		<td id="invoice_txt">是</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">翻译周期：</td>
		<td id="workDaysTxt">是</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">竞标有效期：</td>
		<td id="period_txt"><em>2011-1-2 ~ 2011-1-7 (5天) </em></td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">&nbsp;</td>
		<td>&nbsp;</td>
		<td></td>
	</tr>
	<tr>
		<td class="w20" valign="top">项目需求描述：</td>
		<td colspan="2" id="desc_txt">项目描述：<br />
		一篇冶金方面的项目翻译文档，需求20天内完成。<br />
		交付要求：<br />
		要求希望是有此类项目经验的翻译人员承接此项目，确保翻译质量。</td>
	</tr>
	<tr>
		<td class="w20">项目附件：</td>
		<td id="doc_txt">冶金项目文档.rar</td>
		<td></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td class="w20">&nbsp;</td>
		<td><input type="button" class="backbtn" value="" id="goto1"/>&nbsp;&nbsp;<input type="button" class="confirmbtn" value="" id="goto3"/></td>
		<td>&nbsp;</td>
	</tr>
</table>
</div>
<div id="step03" style="display: none;">
<div class="step03"></div>
<div class="dis_success">
<h6 class="success_tip">项目发布成功！</h6>
<h6 class="error_tips">项目未填写标题！</h6>
<p>我们会在24小时内审核您的项目，我们会为您免费推介一些专业的翻译会员，供你选择理想的合作伙伴！<a href="index.html">点击返回首页</a></p>
</div>
</div>
</div>
<div class="col_right">
<input type="hidden" value="" id="keywords" name="project.keyWords"/>
</div>
</form>
</div>
<jsp:include page="/include/foot/foot.jsp" />
</div>
</body>
</html>
